package gui.mpm;

import java.awt.ComponentOrientation;

import gui.engraving.EngravingFrame;
import gui.engraving.EngravingListOfOrders;
import gui.engraving.EngravingListOfReports;
import gui.engraving.EngravingReportPanel;
import gui.engraving.EngravingSeperatePanel;

import javax.swing.ImageIcon;
import javax.swing.JTabbedPane;

import clients.RPCClient;
import javax.swing.border.TitledBorder;
import javax.swing.JLabel;
import java.awt.SystemColor;
import java.awt.Color;

/**
 * @author Idan
 * Tabbed pane GUI
 */
public class MPMTabbedPanel extends JTabbedPane 
{
	public MPMFrame myFrame;

	
	public MPMTabbedPanel(MPMFrame myFrame)
	{
		setBackground(new Color(173, 216, 230));
		setBorder(new TitledBorder(null, "\u05EA\u05DB\u05E0\u05D5\u05DF \u05E4\u05D9\u05E7\u05D5\u05D7 \u05D9\u05D9\u05E6\u05D5\u05E8", TitledBorder.CENTER, TitledBorder.TOP, null, null));
		this.myFrame=myFrame;
		
		this.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
		this.setTabPlacement(TOP);
		
		ImageIcon manageOrdersIcon = new ImageIcon(EngravingFrame.class.getResource("/graphics/listoforders.png"));
		ImageIcon manageScheduleIcon = new ImageIcon(EngravingFrame.class.getResource("/graphics/schedule.png"));
		this.addTab("ניהול פק''עות",manageOrdersIcon,this.myFrame.mpmPanel);
		this.addTab("ניהול לו''ז", manageScheduleIcon, this.myFrame.mpmPlaning);

 
          
	}
}
